﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;

namespace SharePointManagementStudio
{
    [DefaultPropertyAttribute("Name")]
    class SolutionPropertiesgrid
    {
        private string _Name;
        private Boolean _ContainsWebApplicationResource;
        private Boolean _ContainsGlobalAssembly;
        private Boolean _ContainsCodeAccessSecurityPolicy;
        private string _DeploymentStatus;
        private string _DeployedTo;
        private string _LastOperationResult;
        private string _LastOperationDetails;
        private string _LastOperationTime;

        [CategoryAttribute("Solutions Properties"), DescriptionAttribute("Name of the Solution")]
        public string Name
        {
            get
            {
                return _Name;
            }
            set
            {
                _Name = value;
            }
        }

        [CategoryAttribute("Solutions Properties"), DescriptionAttribute("Contains WebApplication Resource")]
        public Boolean  ContainsWebApplicationResource
        {
            get
            {
                return _ContainsWebApplicationResource;
            }
            set
            {
                _ContainsWebApplicationResource = value;
            }
        }

        [CategoryAttribute("Solutions Properties"), DescriptionAttribute("Contains Global Assembly")]
        public Boolean ContainsGlobalAssembly
        {
            get
            {
                return _ContainsGlobalAssembly;
            }
            set
            {
                _ContainsGlobalAssembly = value;
            }
        }

        [CategoryAttribute("Solutions Properties"), DescriptionAttribute("Contains CodeAccess Security Policy")]
        public Boolean ContainsCodeAccessSecurityPolicy
        {
            get
            {
                return _ContainsCodeAccessSecurityPolicy;
            }
            set
            {
                _ContainsCodeAccessSecurityPolicy = value;
            }
        }

        [CategoryAttribute("Solutions Properties"), DescriptionAttribute("Deployment Status")]
        public string DeploymentStatus
        {
            get
            {
                return _DeploymentStatus;
            }
            set
            {
                _DeploymentStatus = value;
            }
        }
        
        [CategoryAttribute("Solutions Properties"), DescriptionAttribute("Deployed To")]
        public string DeployedTo
        {
            get
            {
                return _DeployedTo;
            }
            set
            {
                _DeployedTo = value;
            }
        }

        [CategoryAttribute("Solutions Properties"), DescriptionAttribute("Last Operation Result")]
        public string LastOperationResult
        {
            get
            {
                return _LastOperationResult;
            }
            set
            {
                _LastOperationResult = value;
            }
        }

        [CategoryAttribute("Solutions Properties"), DescriptionAttribute("Last Operation Details")]
        public string LastOperationDetails
        {
            get
            {
                return _LastOperationDetails;
            }
            set
            {
                _LastOperationDetails = value;
            }
        }
        
        [CategoryAttribute("Solutions Properties"), DescriptionAttribute("Last Operation Time")]
        public string LastOperationTime
        {
            get
            {
                return _LastOperationTime;
            }
            set
            {
                _LastOperationTime = value;
            }
        }
    }
}
